#include "nmea0183.h"
#include <stdio.h>

char message[] = "$GPGLL,0000.0005,S,00000.0004,W,142120,A,D*48\r\n\
$GPVTG,054.0,T,,M,8.78,N,0.0,K,A*3B\r\n";

int main(){
    ShipInformation_t ship;
    NMEA0183_init(&ship);
    NMEA0183_parse(&ship,message);
    printf("[GNSS]\r\nLatitude:%lf\r\nLongitude:%lf\r\nSOG:%lf\r\nCOG:%lf\r\n",
        ship.gnss_information.latitude,
        ship.gnss_information.longitude,
        ship.navigation_information.sog,
        ship.navigation_information.cog);
    return 0;
}

